var limsDbextractConfig = Gikam.getPageObject({

    getEditListColumns : function() {
        return [ {
            checkbox : true
        }, {
            field : 'enable',
            title : 'T_LIMS_DBEXTRACT_CONFIG.ENABLE',
            editor : true,
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'yesorno'
            }
        },  {
            field : 'name',
            title : 'T_LIMS_DBEXTRACT_CONFIG.NAME',
            validators : ['notEmpty'],
            editor : true
        },{
            field : 'sql',
            title : 'T_LIMS_DBEXTRACT_CONFIG.SQL',
            validators : ['notEmpty'],
            type : 'richText',
            editor : true,
            width : 300,
        },{
            field : 'args',
            title : '测试参数',
            editor : true,
        },{
            field : 'resolveFunction',
            title : 'T_LIMS_DBEXTRACT_CONFIG.RESOLVEFUNCTION',
            editor : true,
            width : 180,
        }, {
            field : 'remark',
            title : 'T_LIMS_DBEXTRACT_CONFIG.REMARK',
            editor : true,
            type : 'richText',
        }];
    },

    getBaseInfoFormFields : function() {
        return [ {
            field : 'name',
            title : 'T_LIMS_DBEXTRACT_CONFIG.NAME',
            validators : ['notEmpty'],
            editor : true,
            preInsert : true,
        },{
            field : 'sql',
            title : 'T_LIMS_DBEXTRACT_CONFIG.SQL',
            validators : ['notEmpty'],
            type : 'textarea',
            preInsert : true,
        },];
    },

    getSearchListColumns : function() {
        return [ {
            checkbox : true
        }, Gikam.status.getBpmnColumn(limsDbextractConfig.workflow.dbTable), {
            field : 'sql',
            title : 'T_LIMS_DBEXTRACT_CONFIG.SQL'
        }, {
            field : 'args',
            title : 'T_LIMS_DBEXTRACT_CONFIG.ARGS'
        }, {
            field : 'enable',
            title : 'T_LIMS_DBEXTRACT_CONFIG.ENABLE'
        }, {
            field : 'resolveFunction',
            title : 'T_LIMS_DBEXTRACT_CONFIG.RESOLVEFUNCTION'
        } ];
    },

    getChooseListColumns : function() {
        return [ {
            field : 'sql',
            title : 'T_LIMS_DBEXTRACT_CONFIG.SQL',
            width : 330,
        }, {
            field : 'args',
            title : 'T_LIMS_DBEXTRACT_CONFIG.ARGS'
        }, ];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/common/eptstorage/dbextract-configs'
});
